bitkeeper revision 1.1159.258.127 (4286dddb-5dYH1S3phGceqJNfCfQbg)
authoriap10@freefall.cl.cam.ac.uk <iap10@freefall.cl.cam.ac.uk>
Sun, 15 May 2005 05:27:55 +0000 (05:27 +0000)
committeriap10@freefall.cl.cam.ac.uk <iap10@freefall.cl.cam.ac.uk>
Sun, 15 May 2005 05:27:55 +0000 (05:27 +0000)
update xen-clone (nightly build script) to cope with trees with new kernel symlinks

tools/misc/xen-clone

index 3fac8109f1ebbc3a51f7b97a8eb28658eb67f727..f509da73bf799029b8c2299348d99fe58bf85f00 100755 (executable)
@@ -82,8 +82,14 @@ then
  make -j4 world
  make -j4 linux24
  cd ../install/boot
- [ -r vmlinuz-2.6.*-xen0 ] && ln -s vmlinuz-2.6.*-xen0 xenolinux.gz
-  
+ if [ -r vmlinuz-2.6-xen0 ]
+ then
+  ln -s vmlinuz-2.6-xen0 xenolinux.gz
+ else
+  kern=`ls vmlinuz-2.6.*-xen0 | head -1`
+  [ -r "$kern" ] && ln -s "$kern" xenolinux.gz
+ fi  
+
 else
  # old style repository without 'make world'